import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/demo01',
    name: 'Demo01',
    component: () => import('../views/demo01.vue')
  },
  {
    path: '/demo02_ref',
    name: 'Demo02_ref',
    component: () => import('../views/demo02_ref.vue')
  },
  {
    path: '/demo03_reactive',
    name: 'Demo03_reactive',
    component: () => import('../views/demo03_reactive.vue')
  },
  {
    path: '/demo04',
    name: 'Demo04',
    component: () => import('../views/demo04.vue')
  },
  {
    path: '/demo05',
    name: 'Demo05',
    component: () => import('../views/demo05.vue')
  },
  {
    path: '/demo06',
    name: 'Demo06',
    component: () => import('../views/demo06.vue')
  },
  {
    path: '/demo07',
    name: 'Demo07',
    component: () => import('../views/demo07.vue')
  },
  {
    path: '/demo08',
    name: 'Demo08',
    component: () => import('../views/demo08.vue')
  },
  {
    path: '/demo09',
    name: 'Demo9',
    component: () => import('../views/demo09.vue')
  },
  {
    path: '/demo0010',
    name: 'Demo0010',
    component: () => import('../views/demo0010.vue')
  },
  {
    path: '/demo0012',
    name: 'Demo0012',
    component: () => import('../views/demo0012.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
